
		<?php if($ftype=="debt"){?>
		<form id="bform" action="" method="get">
			<div class="search">
		
			<ul>
				<li>
		          <dd>转让金额：</dd>
		         <dt<?php if($postArr['saccount'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setAccount(0);">全部</a></dt>
		          <?php foreach ($borrow_account as $ak=>$av){?>
		         	<dt <?php echo $postArr['saccount']==$ak?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setAccount(<?php echo $ak;?>);"><?php echo $av;?></a></dt>
		         <?php }?>
		        
		        </li>
		        <li>
		          <dd>剩余期限：</dd>
		         <dt<?php if($postArr['slimit'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setLimit(0);">全部</a></dt>
		         <?php foreach ($borrow_time_limit as $lk=>$lv){?>
		         	<dt <?php echo $postArr['slimit']==$lk?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setLimit(<?php echo $lk;?>);"><?php echo $lv;?></a></dt>
		         <?php }?>
		        </li>
		        <li>
		         <dd>认购收益：</dd>
		         
		         <dt<?php if($postArr['sapr'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setApr(0);">全部</a></dt>
		         <?php foreach ($borrow_apr as $bk=>$bv){?>
		         	<dt <?php echo $postArr['sapr']==$bk?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setApr(<?php echo $bk;?>);"><?php echo $bv;?></a></dt>
		         <?php }?>
		        </li>
		        
		        
		         <li>
		          <dd>项目类型：</dd>
		          <dt<?php if($postArr['sftype'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setFtype(0);">全部</a></dt>
		          <?php foreach ($borrow_type as $rk=>$rv){?>
		         	<dt <?php echo $postArr['sftype']==$rk?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setFtype(<?php echo $rk;?>);"><?php echo $rv;?></a></dt>
		         <?php }?>
		       
		        </li>
	     </ul>
	     		

	</div>
			<div class="invest-product-sort">
	  <h2>排序：</h2>
	  <div class="invest-product-sort-click clearfix">
		<a <?php if($postArr['sorder'] =='verify_down' || $postArr['sorder'] =='verify_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $verify_order;?>')">
		<span class="fl">发布时间</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='verify_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='verify_up'){echo 'icon-i-7';}?>"><img width="12" height="12" src="static/images/icon-i-8.png" style="border:none;"></span>
		</a>
		<a <?php if($postArr['sorder'] =='account_down' || $postArr['sorder'] =='account_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $account_order;?>')">
		<span class="fl">转让金额</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='account_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='account_up'){echo 'icon-i-7';}?>"></span>
		</a>
		<a <?php if($postArr['sorder'] =='apr_down' || $postArr['sorder'] =='apr_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $apr_order;?>')">
		<span class="fl">认购收益</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='apr_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='apr_up'){echo 'icon-i-7';}?>"></span>
		</a>
		<a <?php if($postArr['sorder'] =='repaytime_down' || $postArr['sorder'] =='repaytime_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $repaytime_order;?>')">
		<span class="fl">还款日期</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='repaytime_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='repaytime_up'){echo 'icon-i-7';}?>"></span>
		</a>
		<a <?php if($postArr['sorder'] =='endtime_down' || $postArr['sorder'] =='endtime_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $endtime_order;?>')">
		<span class="fl">过期时间</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='endtime_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='endtime_up'){echo 'icon-i-7';}?>"></span>
		</a>
		</div>
			</div>
		<input type="hidden" id="saccount" name="saccount" value="<?php echo $postArr['saccount'];?>">
		<input type="hidden" id="sapr" name="sapr" value="<?php echo $postArr['sapr'];?>">
		<input type="hidden" id="slimit" name="slimit" value="<?php echo $postArr['slimit'];?>">
		<input type="hidden" id="sftype" name="sftype" value="<?php echo $postArr['sftype'];?>">
		<input type="hidden" id="sorder" name="sorder" value="<?php echo $postArr['sorder'];?>">
		
		</form>
		<?php }else{?>
		<form id="bform" action="" method="get">
		<div class="search">
		
			<ul>
				<li>
		          <dd>融资年利率：</dd>
		         <dt<?php if($postArr['sapr'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setApr(0);">全部</a></dt>
		         <?php foreach ($borrow_apr as $bk=>$bv){?>
		         	<dt <?php echo $postArr['sapr']==$bk?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setApr(<?php echo $bk;?>);"><?php echo $bv;?></a></dt>
		         <?php }?>
		        </li>
		        <li>
		          <dd>存续时间：</dd>
		         <dt<?php if($postArr['slimit'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setLimit(0);">全部</a></dt>
		         <?php foreach ($borrow_time_limit as $lk=>$lv){?>
		         	<dt <?php echo $postArr['slimit']==$lk?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setLimit(<?php echo $lk;?>);"><?php echo $lv;?></a></dt>
		         <?php }?>
		        </li>
		        <li>
		         <dd>融资金额：</dd>
		         
		         <dt<?php if($postArr['saccount'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setAccount(0);">全部</a></dt>
		         <?php foreach ($borrow_account as $ak=>$av){?>
		         	<dt <?php echo $postArr['saccount']==$ak?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setAccount(<?php echo $ak;?>);"><?php echo $av;?></a></dt>
		         <?php }?>
		        </li>
		        
		        
		         <li>
		          <dd>项目状态：</dd>
		          <dt<?php if($postArr['srate'] == 0){?> class="search_all"<?php }?> ><a href="javascript:void(0);" onclick="setRate(0);">全部</a></dt>
		          <?php foreach ($borrow_rate as $rk=>$rv){?>
		         	<dt <?php echo $postArr['srate']==$rk?'class="search_all"':'';?>><a href="javascript:void(0);" onclick="setRate(<?php echo $rk;?>);"><?php echo $rv;?></a></dt>
		         <?php }?>
		       
		        </li>
	     </ul>
     
	    
				

	</div>
		<div class="invest-product-sort">
	  <h2>排序：</h2>
	  <div class="invest-product-sort-click clearfix">
		<a <?php if($postArr['sorder'] =='formal_down' || $postArr['sorder'] =='formal_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $formal_order;?>')">
		<span class="fl">发布时间</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='formal_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='formal_up'){echo 'icon-i-7';}?>"></span>
		</a>
		<a  <?php if($postArr['sorder'] =='account_down' || $postArr['sorder'] =='account_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $account_order?$account_order:'account_down';?>')">
		<span class="fl">项目规模</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='account_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='account_up'){echo 'icon-i-7';}?>"></span>
		</a>
		<a  <?php if($postArr['sorder'] =='apr_down' || $postArr['sorder'] =='apr_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $apr_order?$apr_order:'apr_down';?>')">
		<span class="fl">年化收益</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='apr_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='apr_up'){echo 'icon-i-7';}?>"></span>
		</a>
		<a  <?php if($postArr['sorder'] =='repaytime_down' || $postArr['sorder'] =='repaytime_up'){echo 'class="cur"'; }?> href="javascript:;" onclick="setOrder('<?php echo $repaytime_order?$repaytime_order:'repaytime_down';?>')">
		<span class="fl">还款日期</span>
		<span class="icon-iSprite <?php if($postArr['sorder'] =='repaytime_down'){echo 'icon-i-8'; }elseif($postArr['sorder'] =='repaytime_up'){echo 'icon-i-7';}?>"></span>
		</a>
		</div>
			</div><!--
			 <input type="hidden" id="sftype" name="sftype" value="<?php echo $postArr['sftype'];?>">
		--><input type="hidden" id="saccount" name="saccount" value="<?php echo $postArr['saccount'];?>">
		<input type="hidden" id="sapr" name="sapr" value="<?php echo $postArr['sapr'];?>">
		<input type="hidden" id="slimit" name="slimit" value="<?php echo $postArr['slimit'];?>">
		<input type="hidden" id="srate" name="srate" value="<?php echo $postArr['srate'];?>">
		<input type="hidden" id="sorder" name="sorder" value="<?php echo $postArr['sorder'];?>">
		</form>	
	<?php }?>
